package com.cll.learn.consumer.agent;

import com.cll.learn.api.service.DemoService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Component;

/**
 * 描述信息:
 *
 * @author CLL
 * @version 1.0
 * @date 2020/10/10 13:18
 */
@Component
public class AgentDemoService {

    @DubboReference(interfaceClass = DemoService.class, version = "1.2.0")
    private DemoService demoService;

    public String agentMethodA(String param) {
        return demoService.methodA(param);
    }

    public String agentMethodB(String param) {
        return demoService.methodB(param);
    }

    public String agentMethodC(String param) {
        return demoService.methodC(param);
    }
}
